
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
</head>

<body>
<div class="top">添加商品分类</div>
<div class="main">
	<form action= "savetype" method="post">
		<table width="400px">
			<tr>
				<td>商品分类名称:</td>
				<td><input name="typename"/></td>
			</tr>
			<tr>
				<td>上级分类名称:</td>
				<td>
				<select name = "pid">
					<s:iterator value="gtlist" var="g"> 
					<option value="${g.id}"/>
						<s:property value="typename"/>
					</s:iterator>
				</select>
				</td>
			</tr>
			<tr>
				<td>商品注释:</td>
				<td><input name="note"/></td>
			</tr>
			
			<tr>
				<td>操作：</td>
				<td><input type="submit" value="添加分类"/></td>
			</tr>
		</table>
	</form>

</div>
<jsp:include page="../foot.jsp"/>
</body>
</html>
